<!-- 提示弹窗 -->
<template>
	<view class='cu-modal' :class='{show: show}'>
		<view class='modal'>
			<view class="head">
				全部提醒
				<image @click="close" class="head-close" src="https://ballon-vdigit.oss-cn-qingdao.aliyuncs.com/20250228/202502281528108113.png" mode=""></image>
			</view>
			<view class="list">
				<view v-for="(item,index) in list" :key="index" class="item">
					<view class="item-text">
						{{item.content}}
					</view>
					<view class="item-time">
						{{item.time}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		listRemind
	} from "@/api/pet/remind/saler.js"
	export default {
		data() {
			return {
				show: false, 
				params: {},
				list:[],
			}
		},
		methods: {
			handleOpen(params) {
				this.getList()
				this.show = true;
			},
			getList() {
				uni.showLoading({
					mask: true
				})
				listRemind().then(res => {
					this.list = res
					uni.hideLoading()
				})
			},
			changeDate(e){
				
			},
			close() {
				this.show = false;
			},
		}
	}
</script>

<style scoped lang="scss">
	.modal {
		width: 100%;
		position: absolute;
		left: 0;
		bottom: 0;
		background: #F8F8F8;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
		z-index: 1024;
		.head{
			width: 100%;
			text-align: center;
			position: relative;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 30rpx;
			color: #222222;
			line-height: 42rpx;
			margin: 32rpx 0 40rpx;
			.head-close{
				width: 40rpx;
				height: 40rpx;
				position: absolute;
				top: 50%;
				right: 32rpx;
				transform: translateY(-50%);
			}
		}
		.list{
			padding: 0 16rpx 92rpx;
			overflow: auto;
			max-height: 50vh;
			.item{
				width: 100%;
				padding: 24rpx;
				background: #fff;
				border-radius: 16rpx;
				margin-bottom: 16rpx;
				display: flex;
				flex-direction: column;
				align-items: flex-start;
				&:last-child{
					margin-bottom: 0;
				}
				.item-text{
					width: 100%;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 30rpx;
					color: #222222;
					line-height: 42rpx;
					text-align: left;
				}
				.item-time{
					margin-top: 16rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #999999;
					line-height: 33rpx;
				}
				
			}
		}
	}
</style>